<!doctype html>
<html class="default no-js">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>memop | lcc-framework(Server)</title>
	<meta name="description" content="Documentation for lcc-framework(Server)">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="../assets/css/main.css">
	<script async src="../assets/js/search.js" id="search-script"></script>
</head>
<body>
<header>
	<div class="tsd-page-toolbar">
		<div class="container">
			<div class="table-wrap">
				<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
					<div class="field">
						<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
						<input id="tsd-search-field" type="text" />
					</div>
					<ul class="results">
						<li class="state loading">Preparing search index...</li>
						<li class="state failure">The search index is not available</li>
					</ul>
					<a href="../index.html" class="title">lcc-framework(Server)</a>
				</div>
				<div class="table-cell" id="tsd-widgets">
					<div id="tsd-filter">
						<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
						<div class="tsd-filter-group">
							<div class="tsd-select" id="tsd-filter-visibility">
								<span class="tsd-select-label">All</span>
								<ul class="tsd-select-list">
									<li data-value="public">Public</li>
									<li data-value="protected">Public/Protected</li>
									<li data-value="private" class="selected">All</li>
								</ul>
							</div>
							<input type="checkbox" id="tsd-filter-inherited" checked />
							<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
							<input type="checkbox" id="tsd-filter-externals" checked />
							<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
						</div>
					</div>
					<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
				</div>
			</div>
		</div>
	</div>
	<div class="tsd-page-title">
		<div class="container">
			<ul class="tsd-breadcrumb">
				<li>
					<a href="../modules.html">lcc-framework(Server)</a>
				</li>
				<li>
					<a href="network_socket_socket_line.html">network/socket/socket-line</a>
				</li>
				<li>
					<a href="network_socket_socket_line.lcc.html">lcc</a>
				</li>
				<li>
					<a href="network_socket_socket_line.lcc.cocos.html">cocos</a>
				</li>
				<li>
					<a href="network_socket_socket_line.lcc.cocos.memop.html">memop</a>
				</li>
			</ul>
			<h1>Namespace memop</h1>
		</div>
	</div>
</header>
<div class="container container-main">
	<div class="row">
		<div class="col-8 col-content">
			<section class="tsd-panel-group tsd-index-group">
				<h2>Index</h2>
				<section class="tsd-panel tsd-index-panel">
					<div class="tsd-index-content">
						<section class="tsd-index-section ">
							<h3>Classes</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-class tsd-parent-kind-namespace tsd-has-type-parameter"><a href="../classes/network_socket_socket_line.lcc.cocos.memop.cachedarray.html" class="tsd-kind-icon">Cached<wbr>Array</a></li>
								<li class="tsd-kind-class tsd-parent-kind-namespace tsd-has-type-parameter"><a href="../classes/network_socket_socket_line.lcc.cocos.memop.circularpool.html" class="tsd-kind-icon">Circular<wbr>Pool</a></li>
								<li class="tsd-kind-class tsd-parent-kind-namespace tsd-has-type-parameter"><a href="../classes/network_socket_socket_line.lcc.cocos.memop.linkedarray.html" class="tsd-kind-icon">Linked<wbr>Array</a></li>
								<li class="tsd-kind-class tsd-parent-kind-namespace tsd-has-type-parameter"><a href="../classes/network_socket_socket_line.lcc.cocos.memop.optimizedarray.html" class="tsd-kind-icon">Optimized<wbr>Array</a></li>
								<li class="tsd-kind-class tsd-parent-kind-namespace tsd-has-type-parameter"><a href="../classes/network_socket_socket_line.lcc.cocos.memop.optimizedvaluearray.html" class="tsd-kind-icon">Optimized<wbr>Value<wbr>Array</a></li>
								<li class="tsd-kind-class tsd-parent-kind-namespace tsd-has-type-parameter"><a href="../classes/network_socket_socket_line.lcc.cocos.memop.pool.html" class="tsd-kind-icon">Pool</a></li>
								<li class="tsd-kind-class tsd-parent-kind-namespace tsd-has-type-parameter"><a href="../classes/network_socket_socket_line.lcc.cocos.memop.recyclepool.html" class="tsd-kind-icon">Recycle<wbr>Pool</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Variables</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-variable tsd-parent-kind-namespace"><a href="network_socket_socket_line.lcc.cocos.memop.html#typed_array_pool" class="tsd-kind-icon">typed_<wbr>array_<wbr>pool</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Functions</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-function tsd-parent-kind-namespace tsd-has-type-parameter"><a href="network_socket_socket_line.lcc.cocos.memop.html#sort" class="tsd-kind-icon">sort</a></li>
								<li class="tsd-kind-function tsd-parent-kind-namespace"><a href="network_socket_socket_line.lcc.cocos.memop.html#timsort" class="tsd-kind-icon">timsort</a></li>
							</ul>
						</section>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Variables</h2>
				<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-namespace">
					<a name="typed_array_pool" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagConst">Const</span> typed_<wbr>array_<wbr>pool</h3>
					<div class="tsd-signature tsd-kind-icon">typed_<wbr>array_<wbr>pool<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>alloc_float32<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>alloc_float64<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>alloc_int16<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>alloc_int32<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>alloc_int8<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>alloc_uint16<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>alloc_uint32<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>alloc_uint8<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>free<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>reset<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol"> = ...</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in cocos/memop/typed-array-pool.ts:71</li>
						</ul>
					</aside>
					<div class="tsd-type-declaration">
						<h4>Type declaration</h4>
						<ul class="tsd-parameters">
							<li class="tsd-parameter">
								<h5>alloc_<wbr>float32<span class="tsd-signature-symbol">: </span>function</h5>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal">
									<li class="tsd-signature tsd-kind-icon">alloc_<wbr>float32<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Float32Array</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
											<ul>
												<li>Defined in cocos/memop/typed-array-pool.ts:161</li>
											</ul>
										</aside>
										<div class="tsd-comment tsd-typography">
											<dl class="tsd-comment-tags">
												<dt>en</dt>
												<dd><p>Allocate a Float32Array.</p>
												</dd>
												<dt>zh</dt>
												<dd><p>分配一个 Float32Array。</p>
												</dd>
											</dl>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>n: <span class="tsd-signature-type">any</span></h5>
												<div class="tsd-comment tsd-typography">
													<p>Size of the array</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Float32Array</span></h4>
									</li>
								</ul>
							</li>
							<li class="tsd-parameter">
								<h5>alloc_<wbr>float64<span class="tsd-signature-symbol">: </span>function</h5>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal">
									<li class="tsd-signature tsd-kind-icon">alloc_<wbr>float64<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Float64Array</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
											<ul>
												<li>Defined in cocos/memop/typed-array-pool.ts:175</li>
											</ul>
										</aside>
										<div class="tsd-comment tsd-typography">
											<dl class="tsd-comment-tags">
												<dt>en</dt>
												<dd><p>Allocate a Float64Array.</p>
												</dd>
												<dt>zh</dt>
												<dd><p>分配一个 Float64Array。</p>
												</dd>
											</dl>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>n: <span class="tsd-signature-type">any</span></h5>
												<div class="tsd-comment tsd-typography">
													<p>Size of the array</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Float64Array</span></h4>
									</li>
								</ul>
							</li>
							<li class="tsd-parameter">
								<h5>alloc_<wbr>int16<span class="tsd-signature-symbol">: </span>function</h5>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal">
									<li class="tsd-signature tsd-kind-icon">alloc_<wbr>int16<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Int16Array</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
											<ul>
												<li>Defined in cocos/memop/typed-array-pool.ts:105</li>
											</ul>
										</aside>
										<div class="tsd-comment tsd-typography">
											<dl class="tsd-comment-tags">
												<dt>en</dt>
												<dd><p>Allocate an Int16Array.</p>
												</dd>
												<dt>zh</dt>
												<dd><p>分配一个 Int16Array。</p>
												</dd>
											</dl>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>n: <span class="tsd-signature-type">any</span></h5>
												<div class="tsd-comment tsd-typography">
													<p>Size of the array</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Int16Array</span></h4>
									</li>
								</ul>
							</li>
							<li class="tsd-parameter">
								<h5>alloc_<wbr>int32<span class="tsd-signature-symbol">: </span>function</h5>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal">
									<li class="tsd-signature tsd-kind-icon">alloc_<wbr>int32<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Int32Array</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
											<ul>
												<li>Defined in cocos/memop/typed-array-pool.ts:133</li>
											</ul>
										</aside>
										<div class="tsd-comment tsd-typography">
											<dl class="tsd-comment-tags">
												<dt>en</dt>
												<dd><p>Allocate an Int32Array.</p>
												</dd>
												<dt>zh</dt>
												<dd><p>分配一个 Int32Array。</p>
												</dd>
											</dl>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>n: <span class="tsd-signature-type">any</span></h5>
												<div class="tsd-comment tsd-typography">
													<p>Size of the array</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Int32Array</span></h4>
									</li>
								</ul>
							</li>
							<li class="tsd-parameter">
								<h5>alloc_<wbr>int8<span class="tsd-signature-symbol">: </span>function</h5>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal">
									<li class="tsd-signature tsd-kind-icon">alloc_<wbr>int8<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Int8Array</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
											<ul>
												<li>Defined in cocos/memop/typed-array-pool.ts:77</li>
											</ul>
										</aside>
										<div class="tsd-comment tsd-typography">
											<dl class="tsd-comment-tags">
												<dt>en</dt>
												<dd><p>Allocate an Int8Array.</p>
												</dd>
												<dt>zh</dt>
												<dd><p>分配一个 Int8Array。</p>
												</dd>
											</dl>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>n: <span class="tsd-signature-type">any</span></h5>
												<div class="tsd-comment tsd-typography">
													<p>Size of the array</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Int8Array</span></h4>
									</li>
								</ul>
							</li>
							<li class="tsd-parameter">
								<h5>alloc_<wbr>uint16<span class="tsd-signature-symbol">: </span>function</h5>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal">
									<li class="tsd-signature tsd-kind-icon">alloc_<wbr>uint16<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Uint16Array</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
											<ul>
												<li>Defined in cocos/memop/typed-array-pool.ts:119</li>
											</ul>
										</aside>
										<div class="tsd-comment tsd-typography">
											<dl class="tsd-comment-tags">
												<dt>en</dt>
												<dd><p>Allocate an Uint16Array.</p>
												</dd>
												<dt>zh</dt>
												<dd><p>分配一个 Uint16Array。</p>
												</dd>
											</dl>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>n: <span class="tsd-signature-type">any</span></h5>
												<div class="tsd-comment tsd-typography">
													<p>Size of the array</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Uint16Array</span></h4>
									</li>
								</ul>
							</li>
							<li class="tsd-parameter">
								<h5>alloc_<wbr>uint32<span class="tsd-signature-symbol">: </span>function</h5>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal">
									<li class="tsd-signature tsd-kind-icon">alloc_<wbr>uint32<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Uint32Array</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
											<ul>
												<li>Defined in cocos/memop/typed-array-pool.ts:147</li>
											</ul>
										</aside>
										<div class="tsd-comment tsd-typography">
											<dl class="tsd-comment-tags">
												<dt>en</dt>
												<dd><p>Allocate an Uint32Array.</p>
												</dd>
												<dt>zh</dt>
												<dd><p>分配一个 Uint32Array。</p>
												</dd>
											</dl>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>n: <span class="tsd-signature-type">any</span></h5>
												<div class="tsd-comment tsd-typography">
													<p>Size of the array</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Uint32Array</span></h4>
									</li>
								</ul>
							</li>
							<li class="tsd-parameter">
								<h5>alloc_<wbr>uint8<span class="tsd-signature-symbol">: </span>function</h5>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal">
									<li class="tsd-signature tsd-kind-icon">alloc_<wbr>uint8<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Uint8Array</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
											<ul>
												<li>Defined in cocos/memop/typed-array-pool.ts:91</li>
											</ul>
										</aside>
										<div class="tsd-comment tsd-typography">
											<dl class="tsd-comment-tags">
												<dt>en</dt>
												<dd><p>Allocate an Uint8Array.</p>
												</dd>
												<dt>zh</dt>
												<dd><p>分配一个 Uint8Array。</p>
												</dd>
											</dl>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>n: <span class="tsd-signature-type">any</span></h5>
												<div class="tsd-comment tsd-typography">
													<p>Size of the array</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Uint8Array</span></h4>
									</li>
								</ul>
							</li>
							<li class="tsd-parameter">
								<h5>free<span class="tsd-signature-symbol">: </span>function</h5>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal">
									<li class="tsd-signature tsd-kind-icon">free<span class="tsd-signature-symbol">(</span>array<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
											<ul>
												<li>Defined in cocos/memop/typed-array-pool.ts:198</li>
											</ul>
										</aside>
										<div class="tsd-comment tsd-typography">
											<dl class="tsd-comment-tags">
												<dt>en</dt>
												<dd><p>Release a TypeArray.</p>
												</dd>
												<dt>zh</dt>
												<dd><p>释放一个 TypeArray。</p>
												</dd>
											</dl>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>array: <span class="tsd-signature-type">any</span></h5>
												<div class="tsd-comment tsd-typography">
													<p>The typed array to be released</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
									</li>
								</ul>
							</li>
							<li class="tsd-parameter">
								<h5>reset<span class="tsd-signature-symbol">: </span>function</h5>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal">
									<li class="tsd-signature tsd-kind-icon">reset<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
											<ul>
												<li>Defined in cocos/memop/typed-array-pool.ts:206</li>
											</ul>
										</aside>
										<div class="tsd-comment tsd-typography">
											<dl class="tsd-comment-tags">
												<dt>en</dt>
												<dd><p>Reset TypeArray pool.</p>
												</dd>
												<dt>zh</dt>
												<dd><p>重置 TypeArray 池。</p>
												</dd>
											</dl>
										</div>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
									</li>
								</ul>
							</li>
						</ul>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Functions</h2>
				<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-namespace tsd-has-type-parameter">
					<a name="sort" class="tsd-anchor"></a>
					<h3>sort</h3>
					<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-namespace tsd-has-type-parameter">
						<li class="tsd-signature tsd-kind-icon">sort&lt;T&gt;<span class="tsd-signature-symbol">(</span>array<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[]</span>, from<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, to<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, cmp<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>a<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span>, b<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[]</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in cocos/memop/sort.ts:187</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>zh</dt>
									<dd><p>对数组一个区间内的元素排序。</p>
									</dd>
									<dt>en</dt>
									<dd><p>Calls the _quickSort function with it&#39;s initial values.</p>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>T</h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>array: <span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[]</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>The input array which should be sorted</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> from: <span class="tsd-signature-type">number</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> to: <span class="tsd-signature-type">number</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> cmp: <span class="tsd-signature-symbol">(</span>a<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span>, b<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">number</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>a<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span>, b<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>a: <span class="tsd-signature-type">T</span></h5>
														</li>
														<li>
															<h5>b: <span class="tsd-signature-type">T</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[]</span></h4>
							<p>array Sorted array</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-namespace">
					<a name="timsort" class="tsd-anchor"></a>
					<h3>timsort</h3>
					<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-namespace">
						<li class="tsd-signature tsd-kind-icon">timsort<span class="tsd-signature-symbol">(</span>array<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, lo<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, hi<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, compare<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in cocos/memop/timsort.ts:948</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>zh</dt>
									<dd><p>对一个数组的区间[lo, hi)使用TimSort排序。
										Sort an array in the range [lo, hi) using TimSort.</p>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>array: <span class="tsd-signature-type">any</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>The array to sort.</p>
									</div>
								</li>
								<li>
									<h5>lo: <span class="tsd-signature-type">any</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>First element in the range (inclusive).</p>
									</div>
								</li>
								<li>
									<h5>hi: <span class="tsd-signature-type">any</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>Last element in the range.</p>
									</div>
								</li>
								<li>
									<h5>compare: <span class="tsd-signature-type">any</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>Item comparison function. Default is alphabetical.</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
			</section>
		</div>
		<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
			<nav class="tsd-navigation primary">
				<ul>
					<li class=" ">
						<a href="../modules.html">Exports</a>
					</li>
					<li class="current tsd-kind-module">
						<a href="network_socket_socket_line.html">network/socket/socket-<wbr>line</a>
						<ul>
							<li class="current tsd-kind-namespace tsd-parent-kind-module">
								<a href="network_socket_socket_line.lcc.html">lcc</a>
								<ul>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="network_socket_socket_line.lcc.debug.html">DEBUG</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="network_socket_socket_line.lcc.events.html">Events</a>
									</li>
									<li class="current tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="network_socket_socket_line.lcc.cocos.html">cocos</a>
										<ul>
											<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
												<a href="network_socket_socket_line.lcc.cocos.event.html">event</a>
											</li>
											<li class="current tsd-kind-namespace tsd-parent-kind-namespace">
												<a href="network_socket_socket_line.lcc.cocos.memop.html">memop</a>
											</li>
										</ul>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="network_socket_socket_line.lcc.express.html">express</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="network_socket_socket_line.lcc.fs.html">fs</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="network_socket_socket_line.lcc.http.html">http</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="network_socket_socket_line.lcc.js.html">js</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="network_socket_socket_line.lcc.math.html">math</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="network_socket_socket_line.lcc.netdata.html">netdata</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="network_socket_socket_line.lcc.os.html">os</a>
									</li>
								</ul>
							</li>
						</ul>
					</li>
				</ul>
			</nav>
			<nav class="tsd-navigation secondary menu-sticky">
				<ul class="before-current">
					<li class=" tsd-kind-class tsd-parent-kind-namespace tsd-has-type-parameter">
						<a href="../classes/network_socket_socket_line.lcc.cocos.memop.cachedarray.html" class="tsd-kind-icon">Cached<wbr>Array</a>
					</li>
					<li class=" tsd-kind-class tsd-parent-kind-namespace tsd-has-type-parameter">
						<a href="../classes/network_socket_socket_line.lcc.cocos.memop.circularpool.html" class="tsd-kind-icon">Circular<wbr>Pool</a>
					</li>
					<li class=" tsd-kind-class tsd-parent-kind-namespace tsd-has-type-parameter">
						<a href="../classes/network_socket_socket_line.lcc.cocos.memop.linkedarray.html" class="tsd-kind-icon">Linked<wbr>Array</a>
					</li>
					<li class=" tsd-kind-class tsd-parent-kind-namespace tsd-has-type-parameter">
						<a href="../classes/network_socket_socket_line.lcc.cocos.memop.optimizedarray.html" class="tsd-kind-icon">Optimized<wbr>Array</a>
					</li>
					<li class=" tsd-kind-class tsd-parent-kind-namespace tsd-has-type-parameter">
						<a href="../classes/network_socket_socket_line.lcc.cocos.memop.optimizedvaluearray.html" class="tsd-kind-icon">Optimized<wbr>Value<wbr>Array</a>
					</li>
					<li class=" tsd-kind-class tsd-parent-kind-namespace tsd-has-type-parameter">
						<a href="../classes/network_socket_socket_line.lcc.cocos.memop.pool.html" class="tsd-kind-icon">Pool</a>
					</li>
					<li class=" tsd-kind-class tsd-parent-kind-namespace tsd-has-type-parameter">
						<a href="../classes/network_socket_socket_line.lcc.cocos.memop.recyclepool.html" class="tsd-kind-icon">Recycle<wbr>Pool</a>
					</li>
					<li class=" tsd-kind-variable tsd-parent-kind-namespace">
						<a href="network_socket_socket_line.lcc.cocos.memop.html#typed_array_pool" class="tsd-kind-icon">typed_<wbr>array_<wbr>pool</a>
					</li>
					<li class=" tsd-kind-function tsd-parent-kind-namespace tsd-has-type-parameter">
						<a href="network_socket_socket_line.lcc.cocos.memop.html#sort" class="tsd-kind-icon">sort</a>
					</li>
					<li class=" tsd-kind-function tsd-parent-kind-namespace">
						<a href="network_socket_socket_line.lcc.cocos.memop.html#timsort" class="tsd-kind-icon">timsort</a>
					</li>
				</ul>
			</nav>
		</div>
	</div>
</div>
<footer class="with-border-bottom">
	<div class="container">
		<h2>Legend</h2>
		<div class="tsd-legend-group">
			<ul class="tsd-legend">
				<li class="tsd-kind-namespace"><span class="tsd-kind-icon">Namespace</span></li>
				<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
			</ul>
		</div>
	</div>
</footer>
<div class="container tsd-generator">
	<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
</body>
</html>